package com.leyou.search.pojo;

import com.leyou.common.pojo.PageResult;
import com.leyou.order.pojo.Brand;
import lombok.Data;

import java.util.List;
import java.util.Map;
@Data
public class SearchResult extends PageResult<Goods> {
    private List<Map<String, Object>> categories;//分类待选项
    private List<Brand> brands;//品牌待选项
    private List<Map<String, Object>> specs;//规格参数key和待选项

    public SearchResult() {
    }



    public SearchResult(List<Goods> items, Long total, Integer totalPage, List<Map<String, Object>> categories, List<Brand> brands,List<Map<String, Object>> specs ){
        super(total,totalPage,items);
        this.categories = categories;
        this.brands = brands;
        this.specs=specs;
    }


}